package com.ruoyi.develop.goodsSalebuyall.service;

import java.util.List;

import com.ruoyi.develop.goodsSalebuyall.domain.GoodsSalebuyall;
import com.ruoyi.develop.lvBuy.domain.LvBuy;

/**
 * 采购单合计Service接口
 * @author qh
 * @date 2024-08-09
 */
public interface IGoodsSalebuyallService {
    /**
     * 查询采购单合计
     * @param id 采购单合计主键
     * @return 采购单合计
     */
    public GoodsSalebuyall selectById(String id);

    /**
     * 查询采购单合计列表
     * @param entity 采购单合计
     * @return 采购单合计集合
     */
    public List<GoodsSalebuyall> selectList(GoodsSalebuyall entity);

    /**
     * 新增采购单合计
     * @param entity 采购单合计
     * @return 结果
     */
    public int insert(GoodsSalebuyall entity);

    /**
     * 修改采购单合计
     * @param entity 采购单合计
     * @return 结果
     */
    public int update(GoodsSalebuyall entity);

    public int editZj(GoodsSalebuyall entity);
    /**
     * 批量删除采购单合计
     * @param ids 需要删除的采购单合计主键集合
     * @return 结果
     */
    public int deleteByIds(String[] ids);


    public int deleteCg(String ids);

    /** 采购退货删除 */
    public int deleteBuyAllReturn(String ids);
    /**
     * 删除采购单合计信息
     * @param id 采购单合计主键
     * @return 结果
     */
    public int deleteById(String id);

    public void submitCgd(GoodsSalebuyall entity);
    void addBuyReturn(LvBuy entity);
    public void updateCgd(GoodsSalebuyall entity);

    public List<GoodsSalebuyall> selectMainId(String mainId);

    int getUnarrivedGoodsCount(GoodsSalebuyall entity);

    void submitBuySelf(LvBuy entity);

    void updateBuySelf(LvBuy entity);

    GoodsSalebuyall selectByGoodsIdAndRemark(String goodsId, String remark, String username);


}
